package co.th.bjc.md.dao.impl;

import java.math.BigDecimal;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import co.th.bjc.md.dao.CategoryDao;
import co.th.bjc.md.model.Category;

public class CategoryDaoImpl extends HibernateDaoSupport implements CategoryDao {

	@Override
	public Category findByID(BigDecimal id) throws Exception {
		Category category = (Category) getHibernateTemplate().get(Category.class, id);
		getHibernateTemplate().evict(category);
		return category;
	}

}
